/*
 * Copyright 2010 - 2011, The PLDesktop Development Team
 *
 *  This library is free software; you can redistribute it and/or
 *  modify it under the terms of the GNU Lesser General Public
 *  License as published by the Free Software Foundation; either
 *  version 2.1 of the License, or (at your option) any later version.
 *
 *  This library is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 *  Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public
 *  License along with this library; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 *
 */

#ifndef TAR_HEADER_USTAR_H
#define TAR_HEADER_USTAR_H

#include <lib/tarheader.h>

/**
 * The extension for the ustar header.
 */
class TarHeaderUStar : public TarHeader {
public:
    /**
     * The indicator string for a ustar file.
     */
    static const char *indicatorString;
    /**
     * The current version string.
     */
    static const char *versionString;
    /**
     * Constructor.
     */
    TarHeaderUStar();
    /**
     * UStar indicator "ustar"
     */
    char indicator[6];
    /**
     * UStar version "00"
     */
    char version[2];
    /**
     * Owner user name
     */
    char userName[32];
    /**
     * Owner group name
     */
    char groupName[32];
    /**
     * Device major number
     */
    char majorNumber[8];
    /**
     * Device minor number
     */
    char minorNumber[8];
    /**
     * Filename prefix
     */
    char filenamePrefix[155];
} __attribute__((packed));

#endif
